package promote.brozen.algorithm.hwod;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Predicate;
import java.util.stream.Stream;

/**
 * @author Brozen
 * @date 2020/9/12 3:15 PM
 * @email brozen@qq.com
 */
public class Main1 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.nextLine().toLowerCase();


        Predicate<Character> isYY = c -> c=='a' || c=='e' || c=='i' || c=='o' || c=='u';
        Predicate<Character> isFY = c -> !isYY.test(c);
        Predicate<Character> isFYExceptR = c -> !isYY.test(c) && c!='r';
        Predicate<Character> isE = c -> c=='e';

        AtomicInteger count = new AtomicInteger(0);
        Stream.of(line.split(" "))
                .forEach(word -> {
                    if (word.length() < 4) {
                        return;
                    }

                    Character first = null, second = null, third = null, forth = null;
                    int cc = 0;
                    boolean breaked = false;
                    for (int i = word.length() - 1; i >= 0; i--) {
                        char c = word.charAt(i);
                        if (c < 'a' || c > 'z') {
                            breaked = true;
                            break;
                        }

                        if (first == null) {
                            first = c;
                            continue;
                        } else if (second == null) {
                            second = c;
                            continue;
                        } else if (third == null) {
                            third = c;
                            continue;
                        } else if (forth == null) {
                            forth = c;
                        }

                        if (isFY.test(first) && isYY.test(second) && isFYExceptR.test(third) && isE.test(forth)) {
                            cc++;
                        }

                        first = third;
                        second = forth;
                        third = null;
                        forth = null;
                    }

                    if (!breaked) {
                        count.addAndGet(cc);
                    }
                });

        System.out.println(count.get());
    }

}
